package com.itheima.test0909.test04;

public class IntegerTest {
    public static void main(String[] args) {
        String s = "99,98,65,33,17";
        String[] split = s.split(",");
        int sum = 0;
        for (int i = 0; i < split.length; i++) {
            sum += Integer.valueOf(split[i]);
        }
        System.out.println("该字符串求和为" + sum);
    }
}
